package com.homework.work01;

public class StringDemo {
    public static void main(String[] args) {
        //字符串可以和字符串拼接+
        String str = "hello";
        String str2 = "world";
        System.out.println(str+str2);
        //字符串和任何数据类型拼接的结果都是字符串
        int a = 12;
        boolean b = true;
        String str3 = "hello";
        System.out.println(str3+a+b);
    }
}
